//
//  SplitTableViewCell.m
//  DocOpretionDemo
//
//  Created by haoxiang on 17/9/10.
//  Copyright © 2017年 youyixinxi. All rights reserved.
//

#import "SplitTableViewCell.h"

@interface SplitTableViewCell ()

@property (nonatomic,strong)UILabel        *doc_name;
@property (nonatomic,strong)UITextField    *doc_count;
@property (nonatomic,strong)UILabel        *remark;

@end


@implementation SplitTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}

- (void)setUI{

    _doc_name = [[UILabel alloc]initWithFrame:CGRectMake(15, 15, Screen_Width-150, 20)];
    _doc_name.backgroundColor = [UIColor clearColor];
    _doc_name.textColor = RGB(51, 51, 51, 1);
    _doc_name.font = [UIFont systemFontOfSize:14];
    _doc_name.lineBreakMode = NSLineBreakByTruncatingHead;
    [self.contentView addSubview:_doc_name];
    
    _remark = [[UILabel alloc]initWithFrame:CGRectMake(Screen_Width - 30, 15, 15, 20)];
    _remark.backgroundColor = [UIColor clearColor];
    _remark.textColor = RGB(51, 51, 51, 1);
    _remark.font = [UIFont systemFontOfSize:14];
    _remark.text = @"字";
    [self.contentView addSubview:_remark];
    
    _doc_count = [[UITextField alloc]initWithFrame:CGRectMake(Screen_Width - 120, 12, 80, 26)];
    _doc_count.textAlignment = NSTextAlignmentCenter;
    _doc_count.backgroundColor = [UIColor clearColor];
    _doc_count.textColor = RGB(51, 51, 51, 1);
    _doc_count.font = [UIFont systemFontOfSize:14];
    _doc_count.borderStyle = UITextBorderStyleNone;
    _doc_count.keyboardType = UIKeyboardTypeNumberPad;
    _doc_count.layer.borderColor = [UIColor colorWithWhite:0.9 alpha:1].CGColor;
    _doc_count.layer.borderWidth = 0.8;
    [self.contentView addSubview:_doc_count];
    
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(0, 49, Screen_Width, 1)];
    line.backgroundColor = [UIColor colorWithWhite:0.9 alpha:1];
    [self.contentView addSubview:line];

}


- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
